/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package BLL;

import DAL.Kinhdoanh;
import DAL.Support;
import DTO.dThanphien;
import java.sql.ResultSet;
import java.sql.SQLException;

/**
 *
 * @author HuyTQ
 */
public class bKinhdoanh {
    Kinhdoanh kd= new Kinhdoanh();
    dThanphien dtp=new dThanphien();
    
 public ResultSet Loadthanphienkd (String manv)
    {
     return kd.Loadthanphienkd(manv);
    }
public ResultSet Searchthanphienkd (String matp)
    {
        return kd.Searchthanphienkd(matp);
    }
public int Updatethanphienkd (String matp,String tinhtrang,String chiphi) throws SQLException
    {
        dtp.setMa_tp(matp);
        dtp.setTinh_trang(tinhtrang);
        dtp.setChi_phi(chiphi);
        return kd.Updatethanphienkd(dtp);
        
    }
public int  updatefix () throws SQLException
    {
       
        return kd.Updatefix();
    }
}